package com.learn.practice.liteflow;

import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StepC extends NodeComponent {
    @Override
    public void process() throws Exception {
        UserContext userContext = this.getContextBean(UserContext.class);
        log.info("name: " + userContext.getUserName());
        OrderContext orderContext = this.getContextBean(OrderContext.class);
        log.info("price: " + orderContext.getPrice());

        log.info("step c processed");
    }
}
